package com.lct.demo;

public class Test1 {
    public static void main(String[] args) {

        //输出最大
        int[] faceScores = {15,9000,10000,20000,9500,-5};

        int max = faceScores[0];

        for (int i = 1; i < faceScores.length; i++) {
            //获取当前数据
            int score = faceScores[i];
            if(score > max)
                max = score;
        }

        System.out.println("最大值是" + max);
    }
}
